 <bc:ExDETAIL x:Class="SLS.Presentation.DetailKDSTAMM" 
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             xmlns:exc="clr-namespace:SLS.Controls;assembly=CLSControls"  
             xmlns:my="clr-namespace:SLS.Presentation"
             xmlns:bc="clr-namespace:SLS.Base;assembly=CLSBase"
            xmlns:CinchV2="clr-namespace:Cinch;assembly=Cinch.WPF"
             x:Name="Container" 
             ToolTip="{Binding DisplayName}"
            xmlns:meffed="http:\\www.codeplex.com\MEFedMVVM"
            mc:Ignorable="d"             
           d:DesignHeight="300"
           d:DesignWidth="600"         
        >      
    <bc:ExDETAIL.Resources> 
    <CollectionViewSource   x:Key="vwBaseTable" Source="{Binding Path=ViewDataSet.SetEnv.KDSTAMM}"/>
    <CollectionViewSource   x:Key="vwGTDEF" Source="{Binding Path=ViewDataSet.SetGlobal.GTDEF}"/>
    <CollectionViewSource   x:Key="vwGoodsMasterKeyRelation" Source="{Binding Path=ViewDataSet.SetGlobal.GoodsMasterKeyRelation}"/>
    <CollectionViewSource   x:Key="vwGoodsMasterProperty" Source="{Binding Path=ViewDataSet.SetGlobal.GoodsMasterProperty}"/>
    <CollectionViewSource   x:Key="vwGoodsMasterAssemblePoint" Source="{Binding Path=ViewDataSet.SetGlobal.GoodsMasterAssemblePoint}"/>
    <CollectionViewSource   x:Key="vwGTKR" Source="{Binding Path=ViewDataSet.SetGlobal.GTKR}"/>
    <CollectionViewSource   x:Key="vwGTPR" Source="{Binding Path=ViewDataSet.SetGlobal.GTPR}"/>
    <CollectionViewSource   x:Key="vwGTAR" Source="{Binding Path=ViewDataSet.SetGlobal.GTAR}"/>
    <CollectionViewSource   x:Key="vwKeyBoardInput" Source="{Binding Path=ViewDataSet.SetGlobal.KeyBoardInput}"/>
    <CollectionViewSource   x:Key="vwKDSTAMM" Source="{Binding Path=ViewDataSet.SetGlobal.KDSTAMM}"/>
    </bc:ExDETAIL.Resources>  
     <Grid Name="MasterGrid"
          VerticalAlignment="Top"
           Width="{Binding ElementName=Container,Path=ActualWidth}"
           Height="{Binding ElementName=Container,Path=ActualHeight}"
           >
        <DockPanel LastChildFill="True">
            <Expander DockPanel.Dock="Bottom" IsExpanded="False" Width="{Binding ElementName=Container,Path=ActualWidth}">
                <exc:ExTabControl x:Name="DocumentsCoreList"
                                  ItemsSource="{Binding DocumentsCore}"
                                  CinchV2:NavProps.ShouldHideHostWhenNoItems="true"
                                  TabStripPlacement="Left"                                  
                                  ItemContainerStyle="{DynamicResource TabItemStyleSideTabs}"
                                  Style="{DynamicResource TabControlStyleSideTabs}"
                                  IsSynchronizedWithCurrentItem="True"
                                  DisplayMemberPath="DisplayText"></exc:ExTabControl>
            </Expander>        
            <exc:ExTabControl x:Name="DocumentsList"
                              ItemsSource="{Binding DocumentsData}"
                              CinchV2:NavProps.ShouldHideHostWhenNoItems="true"
                              TabStripPlacement="Top"
                              ItemContainerStyle="{DynamicResource TabItemStyleTopTabs}"
                              Style="{DynamicResource TabControlStyleTopTabs}"
                              IsSynchronizedWithCurrentItem="True"
                              DisplayMemberPath="DisplayText">
            </exc:ExTabControl>
        </DockPanel>      
    </Grid>
</bc:ExDETAIL> 
